<template>
  <div class="app-container">

<el-input v-model="fundCode" placeholder="请输入要新增的fundCode" style="width:400px" /></el-input>
<el-button
          type="primary"
          @click="addFund"
          >确定</el-button
        >
  </div>
</template>
<script>
import FundAPI from "@/api/fund";

export default {
  data() {
    return {   
      fundCode: 0,
    };
  },
  created() {
    
  },
  watch: {
    
  },
  methods: {
    //修改fundAPPcode
   addFund() {
    FundAPI.addByFundCode(this.fundCode)
      .then((response) => {
        if(response.code==200){
         this.$message({
          type: "success",
          message: response.msg,
        });
        }else{
         this.$message({
          type: "success",
          message: response.msg,
        });
        }
        location.reload();
      });
    },

  },
   
};
</script>
